#ifndef __VERTEXARRAYBUFFEROBJECT__H
#define __VERTEXARRAYBUFFEROBJECT__H

#include <GL/glew.h>

#include "VertexBufferObject.h"
#include "VertexIndiceBufferObject.h"

namespace Render
{
	class VertexArrayBufferObject
	{
	public:
		VertexArrayBufferObject(){}
		~VertexArrayBufferObject(){
			Destroy();
		}

		void Init(){
			glGenVertexArrays(1, &vaoID);
		}

		void Bind(){
			glBindVertexArray(vaoID);
		}

		void UnBind(){

		}

		void Destroy(){

			glDeleteVertexArrays(1, &vaoID);
		}

	private:
		GLuint vaoID;
	};
}

#endif